#pragma once
#include <iostream>
class Teacher
{
        friend std::ostream& operator<<(std::ostream &out, const Teacher &obj){
                out<<obj.m_pname<< ", "<<obj.age<<std::endl;
                return out;       
        };
public:
        Teacher();
        Teacher(char *name, int age);
        Teacher(const Teacher &obj);
        ~Teacher();
public:
        Teacher& operator=(const Teacher &obj);

private:
        int age;
        //char name[32];
        char *m_pname;
};


